package com.itpuyang.design23.proxy;

public class Proxy implements Rent {

    private Host host;

    public Proxy() {
    }

    public Proxy(Host host) {
        this.host = host;
    }

    @Override
    public void rent() {
        seeHouse();
        host.rent();
        heTong();
    }


    private void seeHouse(){
        System.out.println("带客户看房子");
    }
    private void heTong(){
        System.out.println("帮客户签合同");
    }
}
